#pragma once
#include <vector>
#include "./ITxRenderer.h"

class TxVideoRenderWnd : public CWnd
{
public:
	TxVideoRenderWnd();

	virtual ~TxVideoRenderWnd();

	void Render(uint8_t* data, int len, int width, int height);

protected:
	std::vector<uint8_t> _yuvData;
	int _width = 1920;
	int _height = 1080;
	ITxRenderer::sptr _glEnv;
protected:
	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSize(UINT nType, int cx, int cy);
};